function getRoleIDs($userName,$userPass)
{
	//declare output
	$output = array();
	if (checkAuthentication($userName, $userPass) == true) {
		$conn = mysqli_connect('localhost', 'root', '', 'paradigmshift_dev');
		if (mysqli_connect_errno()) {
			$error = ErrorCode::sysError;
		} else {
			$sql = "SELECT * FROM paradigmshift_dev.roles";
			$result = mysqli_query($conn, $sql);
			if (!$result) {
				$error = ErrorCode::sysError;
			} else {			
				//build output array, a two dimentional array of data
				while($row = mysqli_fetch_array($result)){
					$output[] = $row;
				}
				$error = ErrorCode::successRead;//success
			}
		//close connection, add errorcode to start of output
		mysqli_close($conn);
		}
	} else {
		$error = ErrorCode::authFailRead;//password was incorrect
	}
	array_unshift($output, $error);
	return $output;
}